/**
 * 接口管理
 * 订单中心>订单详情
 */
import request from '@/utils/request';

// 添加批注
export const setNote = (params = {}) => {
  return request('/Amaidan-Order-Web/order/setMemo', {
    method: 'POST',
    data: params
  })
}
// 获取线上订单信息
export const getOrderInfoForOn = (params = {}) => {
  return request('/Amaidan-Order-Web/order-query/getAmdOrderInfoForOnlineByOrderNo', {
    method: 'POST',
    data: params
  })
}
// 获取线下订单信息
export const getOrderInfoForOff = (params = {}) => {
  return request('/Amaidan-Order-Web/order-query/getAmdOrderInfoForOfflineByOrderNo', {
    method: 'POST',
    data: params
  })
}
// 获取售后订单信息
export const getOrderInfoForAfter = (params = {}) => {
  return request('/Amaidan-Order-Web/after-sales/getAftersalesOrderDetailByApplyNo', {
    method: 'POST',
    data: params
  })
}
// 确认审批
export const auditPass = (params = {}) => {
  return request('/Amaidan-Order-Web/after-sales/auditPass', {
    method: 'POST',
    data: params
  })
}
// 拒绝审批
export const auditNoPass = (params = {}) => {
  return request('/Amaidan-Order-Web/after-sales/auditNoPass', {
    method: 'POST',
    data: params
  })
}
